package com.opesoft.pf.hibernate;

import java.io.Serializable;
import java.util.UUID;

import org.hibernate.HibernateException;
import org.hibernate.engine.SessionImplementor;
import org.hibernate.id.IdentifierGenerator;

public class UuidIdGenerator implements IdentifierGenerator
{

	public Serializable generate(SessionImplementor arg0,Object arg1) throws HibernateException
	{
		UUID uuid=UUID.randomUUID();
		return uuid.toString();
	}

}
